<template>
  <div class="base-filter">
    <van-row type="flex" justify="space-between" align="center">
      <div class="label">{{ label }}</div>
      <slot name="right" />
    </van-row>
    <slot />
  </div>
</template>

<script>
export default {
  name: 'baseFilter',
  props: {
    label: {
      type: String
    }
  }
}
</script>

<style>
  .base-filter .label {
    font-size: 14px;
    color: #333333;
    height: 20px;
    line-height: 20px;
  }
  .base-filter + .base-filter {
    margin-top: 12px;
  }
</style>
